package com.design.lzr.abstractfactory;

/**
 * 抽象工厂模式测试
 *
 * @author lzr
 * @date 2018/9/19
 */
public class Client {

    public static void main(String[] args) {
        ConcreteFactory1 concreteFactory1 = new ConcreteFactory1();
        AbstractProductA productA1 = concreteFactory1.createProductA();
        AbstractProductB productB1 = concreteFactory1.createProductB();
        ProductC commonProduct1 = concreteFactory1.createCommonProduct();
        ConcreteFactory2 concreteFactory2 = new ConcreteFactory2();
        AbstractProductA productA2 = concreteFactory2.createProductA();
        AbstractProductB productB2 = concreteFactory2.createProductB();
        ProductC commonProduct2 = concreteFactory2.createCommonProduct();
    }
}
